package com.ecfront.dwr;
import org.springframework.mail.MailSender;

import com.ecfront.service.UserService;
import com.ecfront.service.impl.UserServiceImpl;

/**
 * AJAX检测Email是否存在
 * @author www.ecfront.com
 *
 */
public class EmailValdate   {

	private UserService userService;
	
	
	public void setUserService(UserService userService) {
		this.userService = userService;
	}


	public boolean isHasEmail(String email){
		return userService.findUserByEmail(email);
	}
}
